﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DotNet.WebUI.BasicControl
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnOK_Click(object sender, EventArgs e)
        {
            if (txtLoginID.Text == "admin" && txtPwd.Text == "123456")
            {
                Response.Redirect("Home.aspx");
            }
            else
            {
                labInfo.Text = "登录代码或密码错误？";
            }
        }
    }
}